<template>
	<view>
		<search to="/pages/langwen/search"></search>
		<filters ref="filters" :activityId="activityId" :activityType="type"></filters>
	</view>
</template>

<script>
	import search from '@/components/langwen/search.vue';
	import filters from '@/components/langwen/filter.vue';
	export default {
		name: 'activityDetail',
		onLoad(option) {
		    uni.setNavigationBarTitle({
		        title: JSON.parse(option.param).name
		    });
		    this.activityId = JSON.parse(option.param).id;
            this.type = JSON.parse(option.param).type;
		},
		// 下拉刷新回调函数
		onPullDownRefresh() {
			this.$refs.filters.getListData('headerRefreshing');
			uni.stopPullDownRefresh();
		},
		// 上拉加载
		onReachBottom() {
			this.$refs.filters.getListData('load');
		},
		data() {
			return {
				activityId: '',
                type: ''
			}
		},
		components: {
		    search,
		    filters
		}
	}
</script>

<style>

</style>
